<template>
    <div class="SceContent">
        <img :src="this.$store.state.imgUrl">
        <div class="SceAddress">
            <div class="SceAddress-Header">
                <div class="Header">
                    <div class="Header-left">
                        <div class="Left-up">
                            {{this.$store.state.name}}
                        </div>
                        <div class="Left-down">
                            "{{this.$store.state.desc}}"
                        </div>
                    </div>
                    <div class="Header-right">
                        <div class="right-up">
                            <p class="Header-left-font">{{this.$store.state.mark}}</p>
                            <p class="Header-right-font">/5分</p>
                        </div>
                        <div class="right-down">
                            <p class="right-remark">{{this.$store.state.remark}}条评论</p>
                            <div class="right-icon"><van-icon name="arrow" /></div>
                        </div>

                    </div>
                </div>
                <div class="sportRank">
                    <div class="rank-left">
                        <van-icon name="medal" />
                    </div>
                    <p class="rank-center">
                        {{this.$store.state.rank}}
                    </p>
                    <div class="rank-right">
                        <van-icon name="arrow" />
                    </div>
                </div>
            </div>
            <div class="SceAddress-Center" @click="ToMap">
                <div class="center-left">
                    <van-icon name="location-o" />
                </div>
                <div class="center-center">
                    <p>{{this.$store.state.address}}</p>
                    <p class="cen-cen-line">{{this.$store.state.line}}</p>
                </div>
                <div class="center-right">
                    <van-icon name="arrow" />
                </div>
            </div>
            <div class="SceAddress-Down">
                <div class="down-left">
                    <van-icon name="orders-o" />
                </div>
                <div class="down-center">
                    <p class="dow-cen-tip">{{this.$store.state.data}}</p>
                    <p class="dow-cen-title">{{this.$store.state.title}}</p>
                </div>
                <p class="down-right">
                    更多详情
                </p>
                <img src="/images/background/SceDetail.png" class="backDetail">
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "SceSportContent",
        methods:{
            ToMap(){
                this.$router.push("/map/mapUp");
            }
        }
    }
</script>

<style scoped>
img{
    width: 100%;
}
.SceAddress{
    font-size: 20px;
    margin: .3rem .2rem 0px .2rem;
    border: 1px solid white;
    border-radius: 25px;
    padding: .2rem;
    background-color: white;
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.08);
}
.Header{
    display: flex;
    justify-content: space-between;
}
.Header-left{
    width: 75%;
    padding-left: 12px;
    border-right: 1px solid #e5e5e5;
}
.Left-up{
    font-size: 23px;
    line-height: 32px;
    color: #222222;
    font-weight: 700;
}
.Left-down{
    font-size: 13px;
    color: #0099f7;
    line-height: 16px;
}
.Header-right{
    width: 25%;
    padding-bottom: 2px;
    text-align: center;
    padding-left: 6%;
    padding-top: 2%;
}
.right-up{
    display: flex;
    align-items: baseline;
}
.right-down{
    display: flex;
    justify-content: space-between;
}
.right-icon{
    font-size: 13px;
    margin-top: -.02rem;
    color: #d5d4d4;
}
.right-remark{
    line-height: 12px;
    font-size: 12px;
    color: #999999;
}
.Header-left-font{
    font-size: 28px;
    color: #0099f7;
    font-weight: 700;
    line-height: 28px;
}
.Header-right-font{
    line-height: 28px;
    font-size: 12px;
    color: #999999;
}
.sportRank{
    display: flex;
    justify-content: space-between;
    margin: 12px auto;
    height: 43px;
    line-height: 43px;
    width: 100%;
    border-radius: 4px;
    background-color: rgba(210,175,119, 0.1);
}
.rank-left, .center-left, .down-left {
    width: 10%;
    text-align: center;
    margin-top: 2px;
}
.rank-center, .center-center, .down-center{
    flex: 1;
    width: 80%;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 200;
}
.rank-right{
    width: 10%;
    color: #b38843;
    font-size: 15px;
}
.center-right{
    width: 10%;
    font-size: 15px;
    padding-top: .1rem;
}
.cen-cen-line{
    margin-top: 1px;
    font-size: 13px;
    line-height: 21px;
    text-align: left;
    width: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666666;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.rank-left, .rank-center, .rank-right{
    color: #b38843;
}
.SceAddress-Center, .SceAddress-Down {
    display: flex;
    justify-content: space-between;
    padding: .2rem 0;
}
.dow-cen-tip{
    line-height: 22px;
    color: #222222;
    padding-right: .2rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0px;
}
.dow-cen-title{
    font-size: 13px;
    line-height: 21px;
    color: #666666;
}
.down-center{
    width: 74%;
}
.down-right{
    width: 16%;
    margin: 10px 0 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: #0099f7;
    z-index: 100;
    text-align: center;
}
.backDetail{
    position: absolute;
    bottom: 3px;
    right: 10px;
    border-bottom-right-radius: 12px;
    height: 50px;
    width: 84px;
}
</style>